<template>
  <div>
    <div v-if="todo">
      <el-input v-model="todo.name" placeholder="请输入内容"></el-input>
      <br />
      <br />
      <el-input
        type="textarea"
        placeholder="请输入内容"
        :autosize="{ minRows: 10 }"
        v-model="todo.conent"
      >
      </el-input>
    </div>
  </div>
</template>

<script lang="ts">
import Vue from "vue";
export default Vue.extend({
  computed: {
    todo() {
      return this.$store.state.currentTodo;
    },
  },
});
</script>

<style>
.btn {
  width: 100px;
  height: 80px;
}
</style>
